Delegate
| Kind of class: | class |
|---|---|
| Inherits from: | Object |
| Classpath: | gfx.utils.Delegate |
| File last modified: | Tuesday, 29 June 2010, 09:03:27 |
The Delegate helps resolve function callbacks when no scope can be passed in. Currently, all component callbacks include a scope, so this class may be deprecated.
Summary
Class methods
- create
- Creates a function wrapper for the original function so that it runs in the provided context.
Class methods
create
static function create (
obj:Object,
func:Function) : Function
Creates a function wrapper for the original function so that it runs in the provided context.
parameter:
- obj Context in which to run the function.
paramater:
- func Function to run.
Returns:
- A wrapper function that when called will make the appropriate scoped callback.